from sqlalchemy import Column, DateTime, Float, Text
from backend.config import Base
class WeatherData(Base):
    __tablename__ = "weather_data"

    date = Column(DateTime, primary_key=True)
    indicator = Column(Text, primary_key=True)  # text 类型无法加 index，但仍可作为联合主键
    value = Column(Float)
